package com.chen.controller;

import com.chen.service.OrderPayService;
import com.chen.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author cws
 * @since
 */
@RestController
@RequestMapping("/order")
public class OrderPayController {

    @Resource
    private OrderPayService orderPayService;

    @PostMapping("/pay")
    public Result orderPay(@RequestParam("orderSn")String orderSn, @RequestHeader("Authorization") String token){
        return orderPayService.orderPay(orderSn,token);
    }





}

